﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Portal.Nhibernate.Repository;

namespace Portal.Web.Admin.Article
{
    public partial class EditTechnologyConsultingControl : BasePage
    {

        private readonly IArticleRepository<IArticle> _articleRepository;

        public EditTechnologyConsultingControl()
        {
            _articleRepository = new ArticleRepository();
        }


        protected void Page_Load(object sender, EventArgs e)
        {
            Model = _articleRepository.Get().SingleOrDefault(o => o.Id == Fq("id"));
        }
        public IArticle Model { get; set; }
    }
}